// 个人日报控制器
define('workFromController', ['angular','jquery','datetimepicker','moment'], function (angular,$,datetimepicker,moment) {
    var module = angular.module('controllers');
    module.controller('workFromController', ['$scope','$filter','$route','userServers','dailyServers',function ($scope,$filter,$route,userServers,dailyServers) {
      	$scope.workList={};
        $scope.work_list=[{
            id:"1",
        	month:"",
            salesman:"222",
            salesman_id:"",
            branch_company:""
            
        }];
        $scope.searchWorkForm=function(){
            $scope.workList = $filter('simplifyJsonFilter')($scope.workList);
            dailyServers.searchWork($scope.workList).then(function(data) {
                $scope.work_list=data;
            });
        };
         $scope.searchWorkForm();
    }]);
});
